#ifndef _TYPE_H_
#define _TYPE_H_

#include "typedefs.h"

typedef uint8_t			  	u_char;		/**< 8-bit value */
typedef uint8_t 			socket_t;
typedef uint16_t			u_short;	/**< 16-bit value */
typedef uint16_t			u_int;		/**< 16-bit value */
typedef uint32_t			u_long;		/**< 32-bit value */

typedef union _un_l2cval
{
	u_long	lVal;
	u_char	cVal[4];
}un_l2cval;

typedef union _un_i2cval
{
	u_int	iVal;
	u_char	cVal[2];
}un_i2cval;

typedef struct _ip{
    uint8_t  mac[6];
    uint8_t  ip[4]; 
    uint8_t  netmask[4];
    uint8_t  gateway[4];
    uint16_t port;
}ipv4_t;


#endif		/* _TYPE_H_ */
